<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->

<? 
session_start();
if(!session_is_registered(uid)){
    echo "You have to login to view this page!</br></br>";
    echo "Click here to return to the "; 
    echo '<a href="./../index.php" title="Login">Login Page</a></br></br>';
    echo "Or sign up using this link ";
    echo '<a href="./Registration/registration.html" title="Registration">Registration Page</a>';
exit();
}
?>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Welcome to Reefers Log</title>
        <link rel="stylesheet" type="text/css" href="http://localhost/ReefersLogApp/CSS/welcomepage.css" />
    </head>
    <h1>Start logging your systems specifications choosing from one of the categories below.</h1>
    <body>
        <table border="1" align="center">
            
            <tr>
                <th><strong>Categories:</strong></th>
                <th><?php
                echo "Welcome: " . $_SESSION['username'];
                echo "<br /> ";
                echo "User ID: " . $_SESSION['uid'];
                ?></th>
            </tr>
            <tr>
            <form name="tank" target="_self" action="./../Tank/tank.html">
                <td><input type="submit" value="Tank Information" name="tank"/></td>
            </form>
            <form name="userprofile" target="_self" action="./../Profile/userprofile.php">
                <td><input type="submit" value="User Profile" name="userprofile"/></td>
            </form>
            </tr>
            <tr>
            <form name="maintenance" target="_self" action="./../Maintenance/maintenance.html">
                <td><input type="submit" value="Maintenance Log" name="maintenance"/></td>
            </form>
            <form name="watertests" target="_self" action="./../Test_Logs/watertest.html">
                <td><input type="submit" value="Test Logs" name="testlogs"/></td>
            </form>
            </tr>
            <tr>
                 <form name="equipment" target="_self" action="./../Equipment/equip.html">
                    <td><input type="submit" value="Equipment" name="goequip"  /></td>
                </form>
                <form name="light" target="_self" action="./../Lighting/Lighting.html">
                    <td><input type="submit" value="Lighting" name="goligth"  /></td>
                </form>
            </tr>
            <tr>
                <form name="live" target="_self" action="./../Livestock/livestock.html">
                    <td><input type="submit" value="Livestock" name="golive" /></td>
                </form>
                <form name="tools" target="_self" action="./../Tools/tools.php">
                    <td><input type="submit" value="Tools" name="gotools" /></td>
                </form> 
            </tr>
        </table>
        
        <form align="center" name="Log Out" target="_self" action="./../Logout/logout.php">
             <td><input type="submit" value="Log Out" name="exit" /></td>
        </form>
    </body>
</html>
